package com.gopay.common.domain.bank;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 到期提醒
 *
 * @author hougn
 * @date 20180123
 */
@Entity
@Table(name = "BANK_EXPIRY_REMINDER")
public class BankExpiryReminder implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = -6240311842289123398L;

	/**
	 * 主键ID
	 */
	private long id;

	/**
	 * 提醒时间
	 */
	private Date reminderDate;

	/**
	 * 事件
	 */
	private String event;

	/**
	 * 类型
	 */
	private String type;

	/**
	 * 创建时间
	 */
	private Date createTs;

	/**
	 * 最新更新时间
	 */
	private Date lastUpdateTs;

	/**
	 * 短信开关 1：开，0：关'
	 */
	private String smsSwitch;

	/**
	 * 邮件开关 1：开，0：关'
	 */
	private String mailSwitch;


	@Id
	@SequenceGenerator(name = "BANK_EXPIRY_REMINDER_SEQ", sequenceName = "BANK_EXPIRY_REMINDER_SEQ",initialValue = 1,allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "BANK_EXPIRY_REMINDER_SEQ")
	@Column(name = "ID")
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "REMINDER_DATE")
	public Date getReminderDate() {
		return reminderDate;
	}

	public void setReminderDate(Date reminderDate) {
		this.reminderDate = reminderDate;
	}

	@Column(name = "EVENT")
	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	@Column(name = "TYPE")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "LAST_UPD_TS")
	public Date getLastUpdateTs() {
		return lastUpdateTs;
	}

	public void setLastUpdateTs(Date lastUpdateTs) {
		this.lastUpdateTs = lastUpdateTs;
	}

	@Column(name = "CREATE_TS")
	public Date getCreateTs() {
		return createTs;
	}

	public void setCreateTs(Date createTs) {
		this.createTs = createTs;
	}

	@Column(name = "SMS_SWITCH")
	public String getSmsSwitch() {
		return smsSwitch;
	}

	public void setSmsSwitch(String smsSwitch) {
		this.smsSwitch = smsSwitch;
	}

	@Column(name = "MAIL_SWITCH")
	public String getMailSwitch() {
		return mailSwitch;
	}

	public void setMailSwitch(String mailSwitch) {
		this.mailSwitch = mailSwitch;
	}
}
